//
//  NWPopWindow.h
//  NongWanCloud
//
//  Created by YueWen on 2018/4/13.
//  Copyright © 2018年 YueWen. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol  NWPopWindowDelegate <NSObject>

@end



/// 提醒框以及选择框的基类
@interface NWPopWindow : UIView

/// 代理
@property (nonatomic, weak, nullable)id <NWPopWindowDelegate>delegate;
/// 背景图
@property (nonatomic, strong) UIView *backgroundView;
/// 追加视图添加到这个视图
@property (nonatomic, strong, readonly) UIView *contentView;;

/// 单例
+ (instancetype)sharedInstance;

/// show
- (void)show;
- (void)dismiss;
+ (void)show;
+ (void)dismiss;
+ (void)show:(nullable id<NWPopWindowDelegate>)delegate;
+ (void)dimiss:(nullable id<NWPopWindowDelegate>)delegate;


/// childView -- 子类实现展示或者消失动画即可
- (void)showAnimated;
- (void)dismissAnimated;

@end

NS_ASSUME_NONNULL_END
